from django.contrib import admin
from .models import Student, Student_last
# Register your models here.

class StudentAdmin(admin.ModelAdmin):
    fieldsets = [
        ('介绍', {'fields': ['student_intro']}),
        ('基本信息', {'fields': ['name', 'seat_number', 'bool_intro']}),
        ('个人信息', {'fields': ['qq_number', 'phone_number']}),
        ('编辑信息', {'fields': ['last_edit_name']}),
        ('其它', {'fields': ['html_text']}),
    ]

class StudentHistoryAdmin(admin.ModelAdmin):
    fieldsets = [
        ('介绍', {'fields': ['student_info']}),
        ('所属学生', {'fields': ['history']}),
        ('个人信息', {'fields': ['qq_number', 'phone_number']}),
        ('编辑信息', {'fields': ['last_edit_name']}),
        ('其它', {'fields': ['html_text']}),
    ]

admin.site.register(Student, StudentAdmin)
admin.site.register(Student_last, StudentHistoryAdmin)